<template>
  <div class="category">
    <h3>{{ title }}分类</h3>
    <slot :games="games" msg="你好啊我是插槽传递数据">我是底部插槽</slot>
  </div>
</template>

<script>
export default {
  name: "CategoryVue",
  props: ["title"],
  data() {
    return {
      games: ["LOL", "CF", "PUBG", "王者荣耀"],
    };
  },
};
</script>

<style scoped>
.category {
  background-color: skyblue;
  width: 200px;
  height: 300px;
}
h3 {
  text-align: center;
  background-color: orange;
}
img {
  width: 100%;
}
video {
  width: 100%;
}
</style>